package grape.house.rest.client.impl.building;

import grape.house.rest.building.mvc.BuildingInnerController;
import grape.house.rest.client.building.BuildingClient;
import grape.house.service.building.po.Building;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/9/28 16:37
 */
@Component
public class BuildingClientImpl implements BuildingClient {
    @Autowired
    private BuildingInnerController buildingInnerController;
    @Override
    public String trans(String type, String key) {
        return buildingInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return buildingInnerController.support(type);
    }

    @Override
    public Building getBuildingById(String id) {
        return buildingInnerController.getBuildingById(id);
    }

    @Override
    public Building getBuildingByCode(String code) {
        return buildingInnerController.getBuildingByCode(code);
    }
}
